package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: 李旭
 * @create: 2021-09-17 15:37
 **/
@FeignClient(name = "service-activity")
public interface ActivityFeignClient {

    //秒杀频道页面 秒杀商品集合
    @GetMapping("/api/activity/seckill/list")
    public List<SeckillGoods> getSeckillGoodsList();

    //根据skuId查询一个秒杀商品
    @GetMapping("/api/activity/seckill/getItem/{skuId}")
    public SeckillGoods getItem(@PathVariable String skuId);
}
